import dt from '@dt/dt'

let _this = null

function options(vm, head) {
  _this = vm
  return [
    {
      field: 'handles',
      title: '选择',
      width: 60,
      slots: {
        default: (params, h) => {
          return [h('Radio', {
            props: {
              value: _this.selected == params.row.userId
            },
            on: {
              'on-change': () => {
                _this.selected = params.row.userId
              }
            }
          })]
        }
      }
    },
    {
      field: 'userName',
      title: '姓名',
    },
    {
      field: 'phone',
      title: '手机号码',
    },
  ]
}

export default {
  options
}
